package io.ooad.banking.dd.domain;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import java.util.Date;

/**
 * 自然人
 * Created by yyang on 16/9/16.
 */
@Entity
@DiscriminatorValue("P")
public class Person extends Party {

    private String idNumber;

    private Date birthday;

    Person() {
    }

    public Person(String name, String idNumber) {
        super(name);
        this.idNumber = idNumber;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
